package org.vs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.vs.domain.model.SysUser;
import org.vs.domain.model.TVote;
import org.vs.domain.vo.UserVO;

import java.util.List;

/**
* @author Fall
* @description 针对表【t_vote】的数据库操作Mapper
* @createDate 2024-01-25 22:54:55
* @Entity org.vs.domain.model.TVote
*/
public interface TVoteMapper extends BaseMapper<TVote> {
    Long insertAndGetId(TVote vote);

    List<SysUser> selectUserInVoteByVoteId(Long voteId);

    List<UserVO> selectUserVOInVoteByVoteId(Long voteId);

    List<TVote> selectAllByTitleAndUserIdAndAddress(String title, Long userId, Integer page, Integer pageSize);

    Long countSelectAllByTitleAndUserIdAndAddress(String title, Long userId);
}




